<template>
  <div>
    <van-nav-bar title="标题" left-text="返回" right-text="按钮" left-arrow />
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/home">登录</van-tabbar-item>
      <van-tabbar-item icon="search" to="/search">搜索</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="/cart" badge="5">购物车</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/register">注册</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data: () => ({
    active: 0
  }),
  created() { },
  methods: {}
}
</script>
<style lang="less" scoped>
</style>
